package com.ymttest.database.sqlwapper;

import java.text.ParseException;
import java.util.List;
import java.util.Map;

import com.ymt.core.tool.Logger;
import com.ymt.database.SqlManager;


public class YmtProductPictureWapper {
	SqlManager manage;

	public YmtProductPictureWapper() {
		manage = new SqlManager("intpro");
	}

	
	
	//查询
	public List<Map> selectByProductId(String sProductId) throws InterruptedException {
	    @SuppressWarnings("unchecked")
	    List<Map>  retList = manage.getSelectResults(
	            "com.ymttest.database.mapping.YmtProductPictureMapper.selectByProductId", sProductId);
	    return retList;
	}
	
	public static void main(String args[]) throws ParseException {
	    try {
	         
	    	YmtProductPictureWapper ymtProductsIWapper = new YmtProductPictureWapper();
	        List<Map> rm = ymtProductsIWapper.selectByProductId("723e2a2f-4a1b-4ee1-9a72-afffb3470608");
	        Logger.debug(rm.size());

	    } catch (InterruptedException e) {
	        e.printStackTrace();
	    }
	}
	
}
